<template>
	<view class="container">
		<view>
			<desc-wrapper :title="title" :desc="desc"></desc-wrapper>
			<z-card title="基本信息">
				<block v-if="companyscore">
					<view class="card-content-item">
						<text class="card-content-label_left ">测算公司名:</text>
						<text class="card-content_right card-text-red">{{companyscore.name}}</text>
					</view>
					<view class="card-content-item">
						<text class="card-content-label_left ">公司名评分:</text>
						<text class="card-content_right">{{companyscore.description.score}}</text>
					</view>
					<view class="card-content-item">
						<text class="card-content-label_left ">公司名凶吉:</text>
						<text class="card-content_right">{{companyscore.description1.xiongji}}</text>
					</view>
					<view class="card-content-item">
						<text class="card-content-label_left  shrink-0 ">公司名简批:</text>
						<text class="card-content_right">{{companyscore.description1.desc}}</text>
					</view>
					<view class="card-content-item">
						<text class="card-content-label_left ">公司名总批:</text>
						<text class="card-content_right">{{companyscore.jixiong}}</text>
					</view>
				</block>

			</z-card>
			<view class="bottom-btns" style="transform: translateY(-100%);" @click="todashi">
				<view class="start-btn">
					<text>大师详解</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '公司名打分测试结果分析',
				desc: '结果分析：心诚则灵，测算结果仅供参考。',
				companyscore: {},
				name: ''
			};
		},
		onLoad(opt) {
			this.companyscore = JSON.parse(opt.params)
			console.log(opt.params);
			this.name = opt.name
		},
		methods:{
			todashi(){
				uni.switchTab({
					url:'/pages/tabbar/service'
				})
			}
		}
	}
</script>
<style lang="scss" scoped></style>





